<template>
  <div></div>
</template>

<script>
import { mapState } from 'vuex'
export default {

data() {
    return {
        
    }
},
methods:{
    addMessage(e){
        if(e.ctrl && this.content.length){
            let msgObj = new Object()
            msgObj.to=this.currentSession.username
            msgObj.content = this.content
            this.$store.state.stomp.send('/ws/chat',{},JSON.stringify(msgObj))
            this.$store.commit('addMessage',msgObj)
            this.content = ''
        }
    }
},
computed: mapState([
    'currentSession'
])

}
</script>

<style>

</style>